package lohr.lang.dom;

public class ReferenceExpression extends Expression {
	private LohrElement _target;
	private IdentifierName _identifierName;

	public ReferenceExpression(LohrElement target, IdentifierName identifierName) {
		addChild(_target= target);
		addChild(_identifierName= identifierName);
	}

	/**
	 * @return either a MethodInvocation or another ReferenceExpression
	 */
	public LohrElement getTarget() {
		return _target;
	}

	public IdentifierName getReferenceName() {
		return _identifierName;
	}
}
